import request from '@/utils/request'

//查看站点
export function listSite(data) {
  return request({
    url: '/api/site/selectSiteInfoByCondition',
    method: 'post',
    data: data
  })
}

//添加站点
export function addSite(data) {
  return request({
    url: '/api/site/insertSite',
    method: 'post',
    data: data
  })
}

//修改站点
export function updateSite(data) {
  return request({
    url: '/api/site/updateSiteIdById',
    method: 'post',
    data: data
  })
}

//删除站点
export function deleteSite(data) {
  return request({
    url: '/api/site/updateSiteStatusById',
    method: 'post',
    data: data
  })
}
